package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoPrintingInteriorPhotos;
import com.muyu.danmo.mapper.DanmoPrintingInteriorPhotosMapper;
import com.muyu.danmo.service.IDanmoPrintingInteriorPhotosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 印刷出版内景Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoPrintingInteriorPhotosServiceImpl implements IDanmoPrintingInteriorPhotosService
{
    @Autowired
    private DanmoPrintingInteriorPhotosMapper danmoPrintingInteriorPhotosMapper;

    /**
     * 查询印刷出版内景
     *
     * @param id 印刷出版内景主键
     * @return 印刷出版内景
     */
    @Override
    public DanmoPrintingInteriorPhotos selectDanmoPrintingInteriorPhotosById(Long id)
    {
        return danmoPrintingInteriorPhotosMapper.selectDanmoPrintingInteriorPhotosById(id);
    }

    /**
     * 查询印刷出版内景列表
     *
     * @param danmoPrintingInteriorPhotos 印刷出版内景
     * @return 印刷出版内景
     */
    @Override
    public List<DanmoPrintingInteriorPhotos> selectDanmoPrintingInteriorPhotosList(DanmoPrintingInteriorPhotos danmoPrintingInteriorPhotos)
    {
        return danmoPrintingInteriorPhotosMapper.selectDanmoPrintingInteriorPhotosList(danmoPrintingInteriorPhotos);
    }

    /**
     * 新增印刷出版内景
     *
     * @param danmoPrintingInteriorPhotos 印刷出版内景
     * @return 结果
     */
    @Override
    public int insertDanmoPrintingInteriorPhotos(DanmoPrintingInteriorPhotos danmoPrintingInteriorPhotos)
    {
        return danmoPrintingInteriorPhotosMapper.insertDanmoPrintingInteriorPhotos(danmoPrintingInteriorPhotos);
    }

    /**
     * 修改印刷出版内景
     *
     * @param danmoPrintingInteriorPhotos 印刷出版内景
     * @return 结果
     */
    @Override
    public int updateDanmoPrintingInteriorPhotos(DanmoPrintingInteriorPhotos danmoPrintingInteriorPhotos)
    {
        return danmoPrintingInteriorPhotosMapper.updateDanmoPrintingInteriorPhotos(danmoPrintingInteriorPhotos);
    }

    /**
     * 批量删除印刷出版内景
     *
     * @param ids 需要删除的印刷出版内景主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingInteriorPhotosByIds(Long[] ids)
    {
        return danmoPrintingInteriorPhotosMapper.deleteDanmoPrintingInteriorPhotosByIds(ids);
    }

    /**
     * 删除印刷出版内景信息
     *
     * @param id 印刷出版内景主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingInteriorPhotosById(Long id)
    {
        return danmoPrintingInteriorPhotosMapper.deleteDanmoPrintingInteriorPhotosById(id);
    }
}
